package com.nl.controller.xuyi.mapper;

import com.nl.controller.xuyi.bean.linepointcheckbo.LineInfoPo;
import com.nl.controller.xuyi.bean.linepointcheckbo.LinePointCheckPo;
import com.nl.controller.xuyi.bean.linepointcheckbo.LinePointRelPo;
import com.nl.controller.xuyi.bean.linepointcheckbo.PointInfoPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhangheng
 * @date 17:17 2020/9/27
 */
@Mapper
public interface XuYiLinePointCheckMapper {
	/**
	 * desc: 查询审核信息
	 * @param checkState:
	 * @param checkType:
	 * @param checkId:
	 * @return: java.util.List<com.nl.controller.xuyi.bean.linepointcheckbo.LinePointCheckPo>
	 * @author zhangheng
	 * @date 2020/9/28 9:41
	 */
	List<LinePointCheckPo> qryLinePointCheckInfo(@Param("checkState") String checkState,@Param("checkType")String checkType,@Param("checkId") String checkId);
	/**
	 * desc: 更新审核状态
	 * @param linePointCheck:
	 * @return: int
	 * @author zhangheng
	 * @date 2020/10/19 15:54
	 */
	int updateLinePointCheckInfo(@Param("linePointCheck") LinePointCheckPo linePointCheck);
	/**
	 * desc: 新增线路
	 * @param lineInfo:
	 * @return: int
	 * @author zhangheng
	 * @date 2020/10/13 14:48
	 */
	int addXuYiLine(@Param("lineInfo")LineInfoPo lineInfo);
	/**
	 * desc: 增加线路点位关系
	 * @param list:
	 * @return: int
	 * @author zhangheng
	 * @date 2020/10/13 15:00
	 */
	int addLinePointRel(@Param("list") List<LinePointRelPo> list);
	/**
	 * desc: 修改线路信息
	 * @param lineInfo:
	 * @return: int
	 * @author zhangheng
	 * @date 2020/10/13 15:03
	 */
	int updateLine(@Param("lineInfo")LineInfoPo lineInfo);
	/**
	 * desc: 删除线路点位关系
	 * @param lineId:
	 * @param operator:
	 * @return: int
	 * @author zhangheng
	 * @date 2020/10/13 15:08
	 */
	int updateLinePointRel(@Param("lineId")String lineId,@Param("operator")String operator);
	/**
	 * desc: 删除线路
	 * @param lineId:
	 * @param operator:
	 * @return: int
	 * @author zhangheng
	 * @date 2020/10/13 15:11
	 */
	int delLine(@Param("lineId")String lineId,@Param("operator")String operator);
	/**
	 * desc: 新增点位
	 * @param pointInfo:
	 * @return: int
	 * @author zhangheng
	 * @date 2020/10/13 15:14
	 */
	int addPoint(@Param("pointInfo")PointInfoPo pointInfo);
	/**
	 * desc: 修改点位
	 * @param pointInfo:
	 * @return: int
	 * @author zhangheng
	 * @date 2020/10/13 15:16
	 */
	int updatePoint(@Param("pointInfo")PointInfoPo pointInfo);
	/**
	 * desc: 删除点位
	 * @param remark:
	 * @param operator:
 	 * @param pointId:
	 * @return: int
	 * @author zhangheng
	 * @date 2020/10/13 15:24
	 */
	int delPoint(@Param("remark")String remark,@Param("operator")String operator,@Param("pointId")String pointId);
	/**
	 * @desc 根据点位id删除关联关系
	 * @param pointId
	 * @return int
	 * @author ll
	 * @date 2020/10/27 14:28
	 */
	int delRelByPoint(@Param("pointId")String pointId,@Param("operator")String operator);
}
